/**
 * Define constants data
 */

var g_VarGlobal = {
    CONNECTED: false,
    DISCONNECTED: false,
    PLAYING_GAME: false,
    ALREADY_LOGIN: false
};

var gColor = {
    white: new cc.Color3B(255, 255, 255),
    black: new cc.Color3B(0, 0, 0),
    blue: new cc.Color3B(0, 0, 255),
    green: new cc.Color3B(0, 255, 0),
    red: new cc.Color3B(255, 0, 0),
    Grey: new cc.Color3B(84, 84, 84),
    Brown: new cc.Color3B(165, 42, 42),
    Pink: new cc.Color3B(255, 192, 203),
    Purple: new cc.Color3B(160, 32, 240),
    Yellow: new cc.Color3B(255, 255, 0),
    Gold: new cc.Color3B(255, 215, 0),
    ranking: new cc.Color3B(37, 160, 18)
};

var cardJoker = {
    Rank: 16,
    Color: 4

};

var g_Result = [
    'daihinmin', 'hinmin',
    'fugo', 'daifugo'
];

var g_nameCPU = {
    Japanesse: ["Thần Bài", "Ozawa", "Thánh Đổ", "Gà Nòi", "Trâu Chó", "Admin"]
};

var PlayerStatus = {
    Normal: 0,
    Daifugo: 1,
    Fugo: 2,
    Hinmin: 3,
    Daihinmin: 4
};

var NB_CPU = 3;

var g_Constants = {
    HOST_NAME: "http://" + window.location.hostname + ":" + window.location.port,
    CARDGAMES_PF_URL: {
        LOGIN: '/login',
        HANDSHAKE_ERROR_RE_LOGIN: "http://" + window.location.hostname + ":" + window.location.port + 'daifugo/auth/cardgames'
    }
};

var MessageNotification = {
    NOT_ENOUGH_MONEY: "プレイができませんでした。残高をご確認ください！",
    REQUEST_DEVICE_INFO_FAILED: "デバイス情報取得は失敗しました。最後ログインしてください。",
    DEVICE_STOPPED: "デバイスは停止しています。店舗の管理者までお問い合わせください。"
};
